import { dogesService } from './doges.service';
import { Controller, Get, Inject, Param } from '@nestjs/common';
import { doges } from './doges.entity';
import { get } from 'superagent';

@Controller('doges')
export class dogesController{

    constructor( private readonly dogesService: dogesService) { }
    


    @Get(':id')
    getDoges(@Param('id') id: number): Promise<doges>{
        return this.dogesService.getAll(id);
    }

    @Get()
    getAaa(): Promise<doges[]>{
        return this.dogesService.getAaa();
    }

}